package com.base.service.COUPON;

import com.base.po.voip_coupon.CouponBrand;
import com.base.po.voip_coupon.CouponBrandExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponBrandService {
    int countByExample(CouponBrandExample example);

    int deleteByExample(CouponBrandExample example);

    int deleteByPrimaryKey(String id);

    int insert(CouponBrand record);

    int insertSelective(CouponBrand record);

    List<CouponBrand> selectByExample(CouponBrandExample example);

    List<CouponBrand> selectAll(@Param("page") Page page, @Param("parentId") String parentId, @Param("topId") String topId,
                                @Param("level") Integer level, @Param("sort") Integer sort);

    CouponBrand selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CouponBrand record, @Param("example") CouponBrandExample example);

    int updateByExample(@Param("record") CouponBrand record, @Param("example") CouponBrandExample example);

    int updateByPrimaryKeySelective(CouponBrand record);

    int updateByPrimaryKey(CouponBrand record);

    int countAll(@Param("parentId") String parentId, @Param("topId") String topId, @Param("level") Integer level);

    void clearAll();
}